package com.jt.tenant.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.jt.tenant.R;
import com.jt.tenant.app.JTApplication;
//import com.jt.tenant.dialog.TipDialog;

/**
 * Created by Administrator on 2016/2/24.
 */
public class Register3Activity extends JTActivity implements View.OnClickListener {

    private TextView title_name,next;

    private TextView go_main;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_register3);

        init_view();
    }

    private void init_view() {

        (title_name = (TextView) findViewById(R.id.tv_title_name)).setText("创建完成");

        (next = (TextView)findViewById(R.id.go_next)).setOnClickListener(this);

    }

    @Override
    public void onClick(View view) {
        super.onClick(view);

        switch (view.getId()){

            case R.id.go_next:

                JTApplication.jtPreferences.saveHaveUid(true);

                finish();

                JTApplication.INSTANCE.finishActivity(Register2Activity.class, Register1Activity.class);

                startActivity(new Intent(this, MainActivity.class));

                break;

        }
    }

    @Override
    public void onBottomClick(View v) {

        super.onBottomClick(v);

        JTApplication.jtPreferences.saveHaveUid(true);

        finish();

        JTApplication.INSTANCE.finishActivity(Register2Activity.class, Register1Activity.class);

        startActivity(new Intent(this, MainActivity.class));

    }
}
